package chapter1104;

public abstract class Employee {
    private String name;
    private int birthdayMonth;

    public Employee(String name, int birthdayMonth) {
        this.name = name;
        this.birthdayMonth = birthdayMonth;
    }

    public double getSalary(int month){
        return this.birthdayMonth==month ? 100 : 0;
    }

    public String getName() {
        return name;
    }
}
